import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
import { HttpClient } from '@angular/common/http';
@Injectable({
  providedIn: 'root'
})
export class ServiceArticleService {
  public baseUrl:string = environment.myUrl


  constructor(
    private http:HttpClient
  ) { }

  // 此处使用fetch写法，避免angular的get方法得不到想要的格式
  getArticle(){
    return fetch(this.baseUrl+'/article/GetArticle')
  }
}
